﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShoppingEntity
{
	/// <summary>
	/// 商品销售记录实体类
	/// </summary>
	public class SalesrRecord:BaseEntity
	{
		/// <summary>
		/// 商品ID
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string GoodsId { get; set; }


		/// <summary>
		/// 订单ID
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string OrderID { get; set; }


		/// <summary>
		/// 下单数量
		/// </summary>
		public int Num { get; set; }


		/// <summary>
		/// 下单时间
		/// </summary>
		public DateTime OrderTime { get; set; }



        public SalesrRecordEnum State { get; set; }


		public enum SalesrRecordEnum
		{
			正常 = 1,
			退款 = 2, 
		}

	}
}
